three_mult = 0
seven_mult = 0
thirteen_mult = 0
nineteen_mult = 0
twentythree_mult = 0
twentynine_mult = 0

for i in range(1, 10001):
    
    if i % 3 == 0:
        three_mult += i
    
    elif i % 7 == 0:
        seven_mult += i

    elif i % 13 == 0:
        thirteen_mult += i

    elif i % 19 == 0:
        nineteen_mult += i

    elif i % 23 == 0:
        twentythree_mult += i

    elif i % 29 == 0:
        twentynine_mult += i

print(f"3的倍数的正整数的和是{three_mult}")
print(f"7的倍数的正整数的和是{seven_mult}")
print(f"13的倍数的正整数的和是{thirteen_mult}")
print(f"19的倍数的正整数的和是{nineteen_mult}")
print(f"23的倍数的正整数的和是{twentythree_mult}")
print(f"29的倍数的正整数的和是{twentynine_mult}")